Skip to content

Label objects with bounding boxes ​

An object detection model learns from rectangles drawn around the objects it has to find. In this guide you create the first tag of a dataset, draw a box around each object of an image and correct a box.

What you will learn

  • How to open an image in the labeling editor
  • How to create the first tag of a dataset
  • How to draw, adjust and review bounding boxes

Before you start

You need an object detection dataset with images in it. See Create a dataset and Upload images to a dataset.

1. Open the image grid ​

Open the dataset and click «Labeling», at the top right. The grid shows every image of the dataset with its state: «Pending» until it is labeled or reviewed.

Open the image grid

2. Open an image ​

Click an image. The editor opens with the image in the centre, the tools on the left and, on the right, the other images and the labels of this one.

Open an image

3. Start the first tag ​

A tag is the name of what you mark: a kind of object or of defect. The editor warns that this dataset has none yet, and without a tag only the position and comment tools work. Click «Next».

Start the first tag

4. Name the tag ​

Type the name of the tag. The square next to it sets its colour, and «Add another tag» adds one more row, to create several tags at once.

Name the tag

5. Create the tag ​

Click «Create». The drawing tools are now available. To add tags later, use «New tag type» in the «Labels» panel.

6. Choose the box tool ​

Click «Draw Bounding Box» in the toolbar on the left. The «Available tags» card appears next to it: the tag selected there is the one the next box gets.

Choose the box tool

7. Draw a box around an object ​

Press on one corner of the object, drag to the opposite corner and release. Fit the box to the object: as tight as possible without cutting it. The guide lines help you align the corners.

Draw a box around an object

8. Mark every object ​

Repeat for every object of the image. A model learns from what is marked and also from what is not: an object left without a box teaches it that there is nothing there.

Mark every object

9. Review the boxes of the image ​

The «Labels» panel, on the right, lists every box of the image with its tag. Use the selector of a row to change the tag of that box and the bin to delete it. The icons above the list sort the boxes by class, hide them all or remove them all.

Review the boxes of the image

10. Go to the next image ​

There is no save button: every change is saved at once, as the note at the bottom shows. Go to the next image with the arrow at the top of the panel or with the D key, and back with A.

Go to the next image

Next steps ​

Recorded on Rosepetal release 1.8.15.